package com.example.lenovo_.healthyangel_menus;

import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;

import com.example.lenovo_.healthyangel.R;

/**
 * Created by lenovo- on 2016/10/17.
 */
public class Personal_Infor_EditorActivity extends AppCompatActivity {
    private TextView tv;
    private Button bt1;
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.personal_infor_editor);
        tv= (TextView) findViewById(R.id.textView8);
        bt1= (Button) findViewById(R.id.button520);
        /*bt1.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent=new Intent(Personal_Infor_EditorActivity.this,ChangShiActivity.class);
                startActivityForResult(intent,1);
            }
        });*/
    }

    @Override
    protected void onActivityResult(int requestCode, int resultCode, Intent data) {
        super.onActivityResult(requestCode, resultCode, data);
        if (requestCode==1&&resultCode==2){
            String content=data.getStringExtra("data");
            tv.setText(content);
        }
    }
}


